<<<<<<< HEAD
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP '后台管理' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/loginAndRegister/jquery-1.7.2.js"></script>
  </head>
  
  <body>
    <h1>后台管理</h1>
    <!-- 添加漫画 -->
    <form action="admin_addCart" method="post" enctype="multipart/form-data">
    	<input type="text" name="cart.cartoonname"/><br/>
    	<select name="cart.cartype">
    		<option value="惊悚">惊悚</option>
    	</select>
    	<input type="file" name="carurl"/>
    	<input type="submit" value="提交"/>
    </form>
    
   <!-- 修改漫画 -->
   <script type="text/javascript">
   		//显示所有漫画
   		function ShowCartoons(){
   			$.ajax({
   				url:"select_selectAll_*",
   				dataType:"json",
   				success:function(z){
   					//var o=JSON.parse(z);
   					$.each(z,function(i,n){
   						var $tr=$("<tr><td>"+n.cartoonid+"</td>"+
   						"<td>"+n.cartoonname+"</td><td>"+n.carurl+"</td>"+
   						"<td>"+n.cartype+"</td><td><a href=''>删除</a></td>"+
   						"<td><a href=''>修改</a></td></tr>");
   						$("#ShowCartoons").append($tr);
   					});
   				}
   			});
   		}
   </script>
   <input type="button" value="显示所有漫画" onclick="ShowCartoons()"/>
   <table id="ShowCartoons">
   		<tr>
   			<th>漫画ID</th>
   			<th>漫画名字</th>
   			<th>漫画的封面</th>
   			<th>漫画类型</th>
   		</tr>
   </table>
   
   
   
   <!-- 删除漫画 -->
  </body>
</html>
=======
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP '后台管理' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" src="${pageContext.request.contextPath}/js/loginAndRegister/jquery-1.7.2.js"></script>
  </head>
  
  <body>
    <h1>后台管理</h1>
    <!-- 添加漫画 -->
    <form action="admin_addCart" method="post" enctype="multipart/form-data">
    	<input type="text" name="cart.cartoonname"/><br/>
    	<select name="cart.cartype">
    		<option value="惊悚">惊悚</option>
    	</select>
    	<input type="file" name="carurl"/>
    	<input type="submit" value="提交"/>
    </form>
    
   <!-- 修改漫画 -->
   <script type="text/javascript">
   		//显示所有漫画
   		function ShowCartoons(){
   			$.ajax({
   				url:"select_selectAll_*",
   				dataType:"json",
   				success:function(z){
   					//var o=JSON.parse(z);
   					$.each(z,function(i,n){
   						var $tr=$("<tr><td>"+n.cartoonid+"</td>"+
   						"<td>"+n.cartoonname+"</td><td>"+n.carurl+"</td>"+
   						"<td>"+n.cartype+"</td><td><a href=''>删除</a></td>"+
   						"<td><a href=''>修改</a></td></tr>");
   						$("#ShowCartoons").append($tr);
   					});
   				}
   			});
   		}
   </script>
   <input type="button" value="显示所有漫画" onclick="ShowCartoons()"/>
   <table id="ShowCartoons">
   		<tr>
   			<th>漫画ID</th>
   			<th>漫画名字</th>
   			<th>漫画的封面</th>
   			<th>漫画类型</th>
   		</tr>
   </table>
   
   
   
   <!-- 删除漫画 -->
  </body>
</html>
>>>>>>> dev
